// src/main/java/com/example/player/command/PlayCommand.java
package com.example.command;


import com.example.core.MediaPlayer;

/**
 * 具体命令：播放命令
 */
public class PlayCommand implements com.example.command.Command {
    private final MediaPlayer player;

    public PlayCommand(MediaPlayer player) {
        this.player = player;
    }

    @Override
    public void execute() {
        player.play();
    }
}
